package UMC.Web;

public class UIAjaxDialog extends UIDialog {


    /**
     * 客户的Http请求
     * @param url
     */
    public UIAjaxDialog(String url) {
        this.config.put("Url", url);
    }

    /**
     * 客户的Http请求
     * @param url
     * @param method
     * @param body
     */
    public UIAjaxDialog(String url, String method, String body) {
        this(url, method, "application/x-www-form-urlencoded", body);
    }

    /**
     * 客户的Http请求
     * @param url
     * @param method
     * @param contentType
     * @param body
     */
    public UIAjaxDialog(String url, String method, String contentType, String body) {
        this.config.put("Url", url, "Method", method, "Body", body, "ContentType", contentType);
    }

    @Override
    protected String type() {
        return "Ajax";
    }

}
